package com.woniu.client;


import com.woniu.client.dto.AddHandelDto;
import com.woniu.client.dto.EmployDto;
import com.woniu.client.dto.FlowHandleDto;
import com.woniu.model.Result;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 员工EmployClient服务
 */
@FeignClient(name = "flow-server",path = "/flow")//这里填目标服务名
public interface FlowClient {
    /**
     * 创建流程执行
     * @param form 添加流程执行form
     */
    @PostMapping("/flowHandle/add")
    @ApiOperation("创建流程执行")
    public Result<FlowHandleDto> add(@RequestBody AddHandelDto form);
}
